package cn.starrysky108.simpleerp.inventory.entity;

import cn.starrysky108.simpleerp.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 仓库订单明细表
 * </p>
 *
 * @author Carl Lee
 * @since 2021-08-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("inventory_detail")
@ApiModel(value = "InventoryDetail对象", description = "仓库订单明细表")
public class InventoryDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "关联订单号")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty(value = "关联商品id")
    @TableField("goods_id")
    private Long goodsId;

    @ApiModelProperty(value = "商品所在仓库id")
    @TableField("warehouse_id")
    private Long warehouseId;

    @ApiModelProperty(value = "是否是入库单，默认true")
    @TableField("is_in")
    private Boolean isIn;

    @ApiModelProperty(value = "数量")
    @TableField("volume")
    private Integer volume;



}
